package com.caroil.caroilservice.activitys.mainpage;

import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.util.Log;
import android.widget.Toast;

import com.caroil.caroilservice.base.BaseActivity;

import androidx.annotation.Nullable;

public class MainAc extends BaseActivity {
    @Override
    protected int bindLayout() {
        return com.caroil.caroilservice.R.layout.ac_main;
    }

    @Override
    protected void initView() {

    }

    @Override
    protected void initData() {

    }

    @Override
    protected void loadMethod() {

    }

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        Intent intent = getIntent();
        Uri uri = intent.getData();
        if (uri != null) {
            String pid = uri.getQueryParameter("pid");
            Toast.makeText(this, pid, Toast.LENGTH_SHORT).show();
            Log.d("xxxxxxx",pid+"");
//            Intent intent0 = new Intent(MainActivity.this, ZhidingActivity.class);
//            startActivity(intent0);
        }

    }
}
